package cc.rengu.igas.bomp.facade.enums;

/**
 * @author: zhangxuran
 * @Date: 2020/4/6 10:31
 * @Description: 图片类型枚举
 * <p>
 * 若修改facade层枚举，需要在CORE层进行对应修改
 */
public enum BompImageTypeEnum {

    BUSINESS_LICENSE("00", "经营执照"),
    ARTIF_FACE_CERT_IMAGE("01", "法人证件照(人像面)"),
    ARTIF_BACK_CERT_IMAGE("02", "法人证件照(国微面)"),
    SIGN_PROTOCOL("03", "签约协议照"),
    COMPANY_PROVE("04", "单位证明函照片"),
    FUND_MANAGE("05", "资金管理关系证明照"),
    CATERING_PLATFORM("06", "主流餐饮平台入驻证明照"),
    INSTITUTION_ARTIF_CERT("07", "事业单位法人证书照"),
    SCHOOL_CERT("08", "办学资质照"),
    ARTIF_REG_CERT("09", "法人登记证书照"),
    MEDICAL_PRACTICE_LICENSE("0A", "医疗执业许可证照"),
    CHARGE_SAMPLE_PHOTO("0B", "收费样本照"),
    NOTE("0C", "照会照"),
    PRIVATE_UNIT_REG_CERT("0D", "民办非企业单位登记证书"),
    SHOP_FRONT_PHOTO("10", "商户门头照"),
    BUSINESS_SITE_PHOTO("11", "经营场所照"),
    HOLDING_CERT_PHOTO("12", "手持证件照"),
    CREDIT_REPORT("20", "征信报告"),
    CREDIT_AUTH("21", "征信授权书"),
    NETWORK_VERIFY_REPORT("22", "联网核查报告"),
    NET_SETTLEMENT_ACCT("30", "结算账户照(商户结算净额)"),
    FEE_SETTLEMENT_ACCT("31", "结算账户照(商户手续费)"),
    COLLECT_DEVICE("40", "收款设备照"),
    TRANS_VOUCHER("41", "交易凭证照"),
    SCENE_SERVICE_SHEET("42", "现场服务工单"),
    MCHNT_TRAIN_CONFIRM_FORM("43", "商户培训确认表"),
    MCHNT_DAILY_CHECKLIST("44", "商户日常检查表"),
    SCENE_TRAIN_SIGN_FORM("45", "现场培训签字表"),
    USER_HEAD_IMAGE("50", "用户头像"),
    OTHER_ELECTRON_IMAGE("99", "其它电子资料");

    private String imageType;
    private String imageDesc;

    BompImageTypeEnum(String imageType, String imageDesc) {
        this.imageType = imageType;
        this.imageDesc = imageDesc;
    }

    public String getImageType() {
        return imageType;
    }

    public void setImageType(String imageType) {
        this.imageType = imageType;
    }

    public String getImageDesc() {
        return imageDesc;
    }

    public void setImageDesc(String imageDesc) {
        this.imageDesc = imageDesc;
    }

    public static BompImageTypeEnum getImageTypeEnumByImageType(String imageType) {
        if (null == imageType || "".equals(imageType)) {
            return null;
        }


        for (BompImageTypeEnum imageTypeEnum : BompImageTypeEnum.values()) {
            if (imageTypeEnum.getImageType().equals(imageType)) {
                return imageTypeEnum;
            }
        }

        return null;
    }

}
